# -*- coding: utf-8 -*-
import os

###########################################################################
## Python code generated with wxFormBuilder (version Oct 26 2018)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc

###########################################################################
## Class MyFrame1
###########################################################################

class MyFrame1 ( wx.Frame ):

	def __init__( self ):
		wx.Frame.__init__ ( self, None, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.Size( 968,710 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )

		self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )
		self.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) )
		self.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNFACE ) )

		bSizer1 = wx.BoxSizer( wx.VERTICAL )

		self.m_bitmap1 = wx.StaticBitmap( self, wx.ID_ANY, wx.Bitmap( u"F:\\P_008.jpg", wx.BITMAP_TYPE_JPEG ), wx.DefaultPosition, wx.Size( -1,100 ), 0 )
		bSizer1.Add( self.m_bitmap1, 0, wx.ALL, 5 )

		fgSizer1 = wx.FlexGridSizer( 4, 3, 0, 0 )
		fgSizer1.SetFlexibleDirection( wx.BOTH )
		fgSizer1.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )

		self.m_dirPicker1 = wx.DirPickerCtrl( self, wx.ID_ANY, u"F:\\tup", u"Select a folder", wx.DefaultPosition, wx.DefaultSize, wx.DIRP_DEFAULT_STYLE )
		self.m_dirPicker1.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_dirPicker1.SetMinSize( wx.Size( 580,-1 ) )

		fgSizer1.Add( self.m_dirPicker1, 0, wx.ALL, 5 )

		self.m_staticText1 = wx.StaticText( self, wx.ID_ANY, u"待拼板书籍样式:", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText1.Wrap( -1 )

		self.m_staticText1.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText1.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer1.Add( self.m_staticText1, 0, wx.ALL, 5 )

		m_choice1Choices = [ u"对页", u"单页" ]
		self.m_choice1 = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.Size( 150,-1 ), m_choice1Choices, 0 )
		self.m_choice1.SetSelection( 0 )
		self.m_choice1.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		fgSizer1.Add( self.m_choice1, 0, wx.ALL, 5 )


		bSizer1.Add( fgSizer1, 0, wx.EXPAND, 5 )

		fgSizer2 = wx.FlexGridSizer( 0, 6, 0, 0 )
		fgSizer2.SetFlexibleDirection( wx.BOTH )
		fgSizer2.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )

		self.書籍拼版模式 = wx.StaticText( self, wx.ID_ANY, u"書籍拼版模式:", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.書籍拼版模式.Wrap( -1 )

		self.書籍拼版模式.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.書籍拼版模式.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer2.Add( self.書籍拼版模式, 0, wx.ALL, 5 )

		m_choice2Choices = [ u"每页左右对齐拼板", u"每页对齐左右", wx.EmptyString ]
		self.m_choice2 = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choice2Choices, 0 )
		self.m_choice2.SetSelection( 1 )
		self.m_choice2.SetFont( wx.Font( 12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )

		fgSizer2.Add( self.m_choice2, 0, wx.ALL, 5 )

		self.m_staticText3 = wx.StaticText( self, wx.ID_ANY, u"拼版模式對應參數:", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText3.Wrap( -1 )

		self.m_staticText3.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText3.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer2.Add( self.m_staticText3, 0, wx.ALL, 5 )

		self.m_textCtrl1 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		fgSizer2.Add( self.m_textCtrl1, 0, wx.ALL, 5 )

		self.m_staticText4 = wx.StaticText( self, wx.ID_ANY, u"設置保存圖片的dpi:", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText4.Wrap( -1 )

		self.m_staticText4.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText4.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer2.Add( self.m_staticText4, 0, wx.ALL, 5 )

		self.m_textCtrl2 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		fgSizer2.Add( self.m_textCtrl2, 0, wx.ALL, 5 )


		bSizer1.Add( fgSizer2, 0, wx.EXPAND, 5 )

		gSizer1 = wx.GridSizer( 0, 4, 0, 0 )

		self.m_staticText5 = wx.StaticText( self, wx.ID_ANY, u"拼板後書籍欲保存名稱:", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText5.Wrap( -1 )

		self.m_staticText5.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText5.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		gSizer1.Add( self.m_staticText5, 0, wx.ALL, 5 )

		self.m_textCtrl3 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size( 210,-1 ), 0 )
		gSizer1.Add( self.m_textCtrl3, 0, wx.ALL, 5 )

		self.m_dirPicker2 = wx.DirPickerCtrl( self, wx.ID_ANY, wx.EmptyString, u"Select a folder", wx.DefaultPosition, wx.Size( 300,-1 ), wx.DIRP_DEFAULT_STYLE )
		self.m_dirPicker2.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(), wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_dirPicker2.SetHelpText( u"書籍保存" )

		gSizer1.Add( self.m_dirPicker2, 0, wx.ALL, 5 )


		bSizer1.Add( gSizer1, 0, wx.EXPAND, 5 )

		fgSizer3 = wx.FlexGridSizer( 0, 8, 0, 0 )
		fgSizer3.SetFlexibleDirection( wx.BOTH )
		fgSizer3.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )

		self.m_staticText6 = wx.StaticText( self, wx.ID_ANY, u"採樣圖片的序號", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText6.Wrap( -1 )

		self.m_staticText6.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText6.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer3.Add( self.m_staticText6, 0, wx.ALL, 5 )

		self.m_textCtrl4 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		fgSizer3.Add( self.m_textCtrl4, 0, wx.ALL, 5 )

		self.m_staticText7 = wx.StaticText( self, wx.ID_ANY, u"裁剪時圖片偏移量", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText7.Wrap( -1 )

		self.m_staticText7.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText7.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer3.Add( self.m_staticText7, 0, wx.ALL, 5 )

		self.m_spinCtrl1 = wx.SpinCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.SP_ARROW_KEYS, 0, 10, 10 )
		self.m_spinCtrl1.SetMinSize( wx.Size( 100,-1 ) )
		self.m_spinCtrl1.SetMaxSize( wx.Size( 200,-1 ) )

		fgSizer3.Add( self.m_spinCtrl1, 0, wx.ALL, 5 )

		self.m_staticText8 = wx.StaticText( self, wx.ID_ANY, u"拼版後兩邊增加留白", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText8.Wrap( -1 )

		self.m_staticText8.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText8.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer3.Add( self.m_staticText8, 0, wx.ALL, 5 )

		self.m_spinCtrl2 = wx.SpinCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size( -1,-1 ), wx.SP_ARROW_KEYS, 0, 10, 0 )
		self.m_spinCtrl2.SetMinSize( wx.Size( 100,-1 ) )
		self.m_spinCtrl2.SetMaxSize( wx.Size( 200,-1 ) )

		fgSizer3.Add( self.m_spinCtrl2, 0, wx.ALL, 5 )

		self.m_staticText9 = wx.StaticText( self, wx.ID_ANY, u"拼版後保存格式", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText9.Wrap( -1 )

		self.m_staticText9.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText9.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer3.Add( self.m_staticText9, 0, wx.ALL, 5 )

		m_choice3Choices = [ u"jpg", u"png", u"tiff", wx.EmptyString ]
		self.m_choice3 = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choice3Choices, 0 )
		self.m_choice3.SetSelection( 0 )
		fgSizer3.Add( self.m_choice3, 0, wx.ALL, 5 )


		bSizer1.Add( fgSizer3, 0, wx.EXPAND, 5 )

		fgSizer4 = wx.FlexGridSizer( 0, 8, 0, 0 )
		fgSizer4.SetFlexibleDirection( wx.BOTH )
		fgSizer4.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )

		self.m_staticText10 = wx.StaticText( self, wx.ID_ANY, u"標點y位置1", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText10.Wrap( -1 )

		self.m_staticText10.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText10.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer4.Add( self.m_staticText10, 0, wx.ALL, 5 )

		self.m_textCtrl6 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		fgSizer4.Add( self.m_textCtrl6, 0, wx.ALL, 5 )

		self.m_staticText11 = wx.StaticText( self, wx.ID_ANY, u"標點y位置2", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText11.Wrap( -1 )

		self.m_staticText11.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText11.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer4.Add( self.m_staticText11, 0, wx.ALL, 5 )

		self.m_textCtrl7 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		fgSizer4.Add( self.m_textCtrl7, 0, wx.ALL, 5 )

		self.m_staticText12 = wx.StaticText( self, wx.ID_ANY, u"標點x位置1", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText12.Wrap( -1 )

		self.m_staticText12.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText12.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer4.Add( self.m_staticText12, 0, wx.ALL, 5 )

		self.m_textCtrl8 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		fgSizer4.Add( self.m_textCtrl8, 0, wx.ALL, 5 )

		self.m_staticText13 = wx.StaticText( self, wx.ID_ANY, u"標點x位置2", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText13.Wrap( -1 )

		self.m_staticText13.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText13.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer4.Add( self.m_staticText13, 0, wx.ALL, 5 )

		self.m_textCtrl9 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		fgSizer4.Add( self.m_textCtrl9, 0, wx.ALL, 5 )


		bSizer1.Add( fgSizer4, 0, wx.EXPAND, 5 )

		fgSizer5 = wx.FlexGridSizer( 0, 9, 0, 0 )
		fgSizer5.SetFlexibleDirection( wx.BOTH )
		fgSizer5.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )

		self.m_dirPicker3 = wx.DirPickerCtrl( self, wx.ID_ANY, u"選擇配置文件", u"選擇配置文件", wx.DefaultPosition, wx.DefaultSize, wx.DIRP_SMALL )
		fgSizer5.Add( self.m_dirPicker3, 0, wx.ALL, 5 )

		self.m_button1 = wx.Button( self, wx.ID_ANY, u"保存配置文件", wx.DefaultPosition, wx.DefaultSize, 0 )
		fgSizer5.Add( self.m_button1, 0, wx.ALL, 5 )

		self.m_staticText14 = wx.StaticText( self, wx.ID_ANY, u"拼板窗口大小", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_staticText14.Wrap( -1 )

		self.m_staticText14.SetFont( wx.Font( 10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, wx.EmptyString ) )
		self.m_staticText14.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_BTNTEXT ) )

		fgSizer5.Add( self.m_staticText14, 0, wx.ALL, 5 )

		self.m_textCtrl10 = wx.TextCtrl( self, wx.ID_ANY, "700", wx.DefaultPosition, wx.DefaultSize, 0 )
		fgSizer5.Add( self.m_textCtrl10, 0, wx.ALL, 5 )

		self.m_textCtrl11 = wx.TextCtrl( self, wx.ID_ANY, "800", wx.DefaultPosition, wx.DefaultSize, 0 )
		fgSizer5.Add( self.m_textCtrl11, 0, wx.ALL, 5 )

		m_choice4Choices = [ u"拼版完查看圖片", u"拼版完不查看圖片" ]
		self.m_choice4 = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choice4Choices, 0 )
		self.m_choice4.SetSelection( 0 )
		fgSizer5.Add( self.m_choice4, 0, wx.ALL, 5 )

		self.m_button2 = wx.Button( self, wx.ID_ANY, u"開始拼版", wx.DefaultPosition, wx.DefaultSize, 0 )
		fgSizer5.Add( self.m_button2, 0, wx.ALL, 5 )


		bSizer1.Add( fgSizer5, 0, wx.EXPAND, 5 )

		bSizer2 = wx.BoxSizer( wx.VERTICAL )

		sbSizer1 = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, u"结果显示" ), wx.VERTICAL )

		self.m_textCtrl12 = wx.TextCtrl( sbSizer1.GetStaticBox(), wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_MULTILINE|wx.HSCROLL|wx.VSCROLL )
		self.m_textCtrl12.SetForegroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOWTEXT))
		self.m_textCtrl12.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW))
		self.m_textCtrl12.SetMinSize(wx.Size(900, 600))

		sbSizer1.Add( self.m_textCtrl12, 0, wx.ALL, 5 )


		bSizer2.Add( sbSizer1, 1, wx.EXPAND, 5 )


		bSizer1.Add( bSizer2, 0, wx.EXPAND, 5 )


		self.SetSizer( bSizer1 )
		self.Layout()

		self.Centre( wx.BOTH )

		# Connect Events
		self.m_button2.Bind( wx.EVT_LEFT_DOWN, self.m_button2OnLeftDown )
		self.m_choice1.Bind(wx.EVT_CHOICE, self.m_choice1OnChoice)

	def __del__( self ):
		pass

	def m_button2OnLeftDown(self, event):
		path = self.m_dirPicker1.GetPath()
		print(f'dsfsdfsdfsfdsdfsf:{path}')
		selection = self.m_choice1.GetSelection()
		print(f'dsfsdfsdfsfdsdfsf:{selection}')
		self.collect_book_param()

	def m_choice1OnChoice(self, event):
		selection = self.m_choice1.GetSelection()
		if selection == 0:
			self.m_textCtrl10.SetValue(str(700))  # 拼版窗口宽
			self.m_textCtrl11.SetValue(str(800))  # 拼版窗口高
		if selection == 1:
			self.m_textCtrl10.SetValue(str(500))  # 拼版窗口宽
			self.m_textCtrl11.SetValue(str(600))  # 拼版窗口高
	def select_path(self, event):
		print(f'sdfdddddddddddddddddddddddddddddd{event}')
		skip = event.Skip()
		print(skip)

	def param_init(self):
		self.orignalPath = None  # 元书籍路径
		self.dealWithBookType = 0  # 带拼页样式
		self.bookMakeUpType = 0  # 每页左右对齐拼版
		self.bookMakeUpModel = None  # 拼版模式对应参数
		self.bookSaveDpi = None  # 图片保存的tpi
		self.makeUpSaveFolderName = None  # 拼版后书籍保存文件夹
		self.makeUpSavePath = None  # 拼版后数据保存的路径
		self.samplingBookNo = None  # 采样图片序号
		self.tailorOffset = None  # 裁剪时图片偏移量
		self.makeUpAddLeaveNote = 0  # 裁剪后左右增加的留白
		self.makeUpSaveType = 0  # 拼版后保存的格式
		self.punctuationY1 = None  # 标点Y1
		self.punctuationY2 = None  # Y2
		self.punctuationX1 = None  # X1
		self.punctuationX2 = None  # X2
		self.makeUpWindowSizeWeight = None  # 拼版窗口宽
		self.makeUpWindowSizeHeight = None  # 拼版窗口高
		self.makeUpOverSeaBook = 0  # 拼版后查看图片

	def collect_book_param(self):
		self.orignalPath = self.m_dirPicker1.GetPath()  # 元书籍路径
		self.dealWithBookType = self.m_choice1.GetSelection()  # 待拼页样式
		self.bookMakeUpType = self.m_choice2.GetSelection()  # 每页左右对齐拼版
		self.bookMakeUpModel = self.m_textCtrl1.GetValue()  # 拼版模式对应参数
		self.bookSaveDpi = self.m_textCtrl2.GetValue()  # 图片保存的tpi
		self.makeUpSaveFolderName = self.m_textCtrl3.GetValue()  # 拼版后书籍保存文件夹
		self.makeUpSavePath = self.m_dirPicker2.GetPath()  # 拼版后数据保存的路径
		self.samplingBookNo = self.m_textCtrl4.GetValue()  # 采样图片序号
		self.tailorOffset = self.m_spinCtrl1.GetValue()  # 裁剪时图片偏移量
		self.makeUpAddLeaveNote = self.m_spinCtrl2.GetValue()  # 裁剪后左右增加的留白
		self.makeUpSaveType = self.m_choice3.GetSelection()  # 拼版后保存的格式
		self.punctuationY1 = self.m_textCtrl6.GetValue()  # 标点Y1
		self.punctuationY2 = self.m_textCtrl7.GetValue()  # Y2
		self.punctuationX1 = self.m_textCtrl8.GetValue()  # X1
		self.punctuationX2 = self.m_textCtrl9.GetValue()  # X2
		self.makeUpWindowSizeWeight = self.m_textCtrl10.GetValue()  # 拼版窗口宽
		self.makeUpWindowSizeHeight = self.m_textCtrl11.GetValue()  # 拼版窗口高
		self.makeUpOverSeaBook = self.m_choice4.GetSelection()  # 拼版后查看图片
		self.m_textCtrl12.AppendText(self.orignalPath + os.linesep)
		self.m_textCtrl12.AppendText(str(self.dealWithBookType) + os.linesep)



